package com.shcowin.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import com.shcowin.entity.News;
 
public interface NewsMapper{
    
    public List<News> getAll();
    
    public List<News> getByPage(int start,int end);
    
    public List<News> getDynamicByPage(int start,int end);
    
    public List<News> getNewsByPage(int start,int end);
    
    public News getById(int id);
    
    public News getByTitle(String title);
    
    public void add(News news);
    
    public void edit(News news);
    
    public void del(int id);
    @Select("select count(id) from news")
    public int getCount();
}